up
This commit is contained in:
		
							parent
							
								
									3892d966f3
								
							
						
					
					
						commit
						a82654c40d
					
				@ -7,7 +7,7 @@ import (
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	s, err := shortify.New(shortify.Config{
 | 
			
		||||
		DataFolder: "./shoritfy",
 | 
			
		||||
		DataFolder: "./shortify",
 | 
			
		||||
	})
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		panic(err)
 | 
			
		||||
@ -23,7 +23,7 @@ func main() {
 | 
			
		||||
 | 
			
		||||
	a := fiber.New()
 | 
			
		||||
 | 
			
		||||
	a.Get("/shorten", s.HandlePostURL())
 | 
			
		||||
	a.Post("/shorten", s.HandlePostURL())
 | 
			
		||||
	a.Get("/s/:id", s.HandleGetURL())
 | 
			
		||||
 | 
			
		||||
	a.Listen(":3001")
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								shortify/analytics.db
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								shortify/analytics.db
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								shortify/analytics.db.wal
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								shortify/analytics.db.wal
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								shortify/database.db
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								shortify/database.db
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user