Last active
March 15, 2019 11:06
-
-
Save erksch/339f0c73d1780be738f462a5eef5a528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OrderService { | |
static async list() { | |
const orders = await api.get('/api/orders'); | |
return orders; | |
} | |
static async delete(id) { | |
await api.delete(`/api/orders/${id}`); | |
} | |
} | |
export default OrderService; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment