controllers

package
v0.0.0-...-1edb5c9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePath

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

CreatePath creates a new item at a specific place

func DeletePath

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

DeletePath deletes an item from the path and all of its children

func GetExactPath

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

GetExactPath returns a single file at a path. It uses a URLParam of path encoded in base64

func GetPath

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

GetPath returns all files and dirs for a path, at a specific level. It accepts two optional queries path: string is the source path level: int is the number of levels deep to get

func UpdateItem

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

UpdateItem updates an item's value at a specific path

func UpdatePath

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

UpdatePath moves an item from source to dest and returns all items changed

Types

This section is empty.

Jump to

Keyboard shortcuts

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