@@ -23,6 +23,9 @@ func (s *Server) Admin() *fiber.App {
a.Post("/shorten",func(c*fiber.Ctx)error{
shortUrl:=c.Query("s")
ifshortUrl==""{
shortUrl=s.serverGen.NextID()
}
longUrl:=string(c.Body())
returns.storage.Put(shortUrl,longUrl)
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.