middlewares

package
v0.0.0-...-b5db8e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePost

func CreatePost(w http.ResponseWriter, r *http.Request)

createPost create a post in postgres DB

func DeletePost

func DeletePost(w http.ResponseWriter, r *http.Request)

func GetAllPosts

func GetAllPosts(w http.ResponseWriter, r *http.Request)

GetAllUser will return all the users

func GetPost

func GetPost(w http.ResponseWriter, r *http.Request)

return single post by ID

func UpdatePost

func UpdatePost(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL